package com.cxso.example.request.wlpt;

import com.cxso.example.domain.wlpt.goods.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;


@Setter
@Getter
@Schema(description = "创建货源")
public class ApiConsignorGoodsCreateReq extends ApiBaseReq {

    @Schema(description = "基础信息")
    @Valid
    @NotNull(message = "基础信息不能为空")
    private ApiGoodsBasicDomain basic;

    @Schema(description = "线路信息")
    @Valid
    @NotNull(message = "线路信息不能为空")
    private ApiGoodsLineDomain line;

    @Schema(description = "货物信息")
    @Valid
    @NotNull(message = "货物信息不能为空")
    private ApiGoodsDomain goods;

    @Schema(description = "结算信息")
    @Valid
    @NotNull(message = "结算信息不能为空")
    private ApiGoodsSettlementDomain settlement;

    @Schema(description = "发货要求")
    @Valid
    @NotNull(message = "发货要求不能为空")
    private ApiGoodsRequireDomain require;

}
